#include <Probability.hpp>

Probability::Probability(double probability)
{
   probability_m = probability;
}

Probability Probability::operator!() const
{
   return Probability(1-probability_m);
}

Probability Probability::operator && (const Probability & probability)
{
   return Probability(probability_m*probability.probability_m);
}

Probability Probability::operator ||(const Probability & probability)
{
   return Probability(1-probability_m*probability.probability_m);
}
